<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="assets/img/birthday_116.14315789474px_1195777_easyicon.net.png">
    <link rel="icon" type="image/png" href="assets/img/birthday_116.14315789474px_1195777_easyicon.net.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>欢迎进入蒋婷的私人相册</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
    <!--     Fonts and icons     -->
    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
    <!-- CSS Files -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="assets/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
    <!-- CSS Just for demo purpose, don't include it in your project -->
    <link href="assets/css/demo.css" rel="stylesheet" />
    <!-- Canonical SEO -->
    <link rel="canonical" href="" />
    <!--  Social tags      -->
    <meta name="keywords" content="">
    <meta name="description" content="">
    
    <style>
      .login-page .card-login .logo-container{
            width: 300px;
            height:120px;
            margin-left:30px;
      }
    </style>
    
</head>

<body class="login-page sidebar-collapse">
    <!-- Navbar -->
    <nav class="navbar navbar-expand-lg bg-primary fixed-top navbar-transparent " color-on-scroll="400">
        <div class="container">
            <div class="dropdown button-dropdown">
                <a href="#pablo" class="dropdown-toggle" id="navbarDropdown" data-toggle="dropdown">
                    <span class="button-bar"></span>
                    <span class="button-bar"></span>
                    <span class="button-bar"></span>
                </a>
                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                    <a class="dropdown-header">任务菜单</a>
                    <a class="dropdown-item" href="#">运行</a>
                    <a class="dropdown-item" href="#">搜索</a>
                    <a class="dropdown-item" href="#">开发者工具</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">联系我</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">帮助?</a>
                </div>
            </div>
            <div class="navbar-translate">
                <a class="navbar-brand" href="#" rel="tooltip" data-placement="bottom">
                   进入个人空间
                </a>
                <button class="navbar-toggler navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-bar bar1"></span>
                    <span class="navbar-toggler-bar bar2"></span>
                    <span class="navbar-toggler-bar bar3"></span>
                </button>
            </div>
            <div class="collapse navbar-collapse justify-content-end" data-nav-image="assets/img/blurred-image-1.jpg">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" href="#">啊哦~ 功能丢掉了...</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#/issues">你直接点击登录就行啦</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" rel="tooltip" title="Follow us on Twitter" data-placement="bottom" href="#CreativeTim" target="_blank">
                            <!-- <i class="fa fa-twitter"></i> -->
                            <p class="d-lg-none d-xl-none">我会悄悄告诉你登录口令</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" rel="tooltip" title="Like us on Facebook" data-placement="bottom" href="#CreativeTim" target="_blank">
                            <!-- <i class="fa fa-facebook-square"></i> -->
                            <p class="d-lg-none d-xl-none">然后,嘻嘻,你就可以看你的空间啦</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" rel="tooltip" title="Follow us on Instagram" data-placement="bottom" href="#" target="_blank">
                            <!-- <i class="fa fa-instagram"></i> -->
                            <p class="d-lg-none d-xl-none">有事联系我哦</p>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <!-- End Navbar -->
    <div class="page-header" filter-color="orange">
        <div class="page-header-image" style="background-image:url(assets/img/login.jpg)"></div>
        <div class="container">
            <div class="col-md-4 content-center">
                <div class="card card-login card-plain">
                    <form class="form" method="" action="./index.html">
                        <div class="header header-primary text-center">
                            <div class="logo-container">
                                <img src="assets/img/srlogo (3).png" alt="" class="imgico" width="300px">
                            </div>
                        </div>
                        <div class="content">
                            <div class="input-group form-group-no-border input-lg">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons users_circle-08"></i>
                                </span>
                                <input type="text" class="form-control" placeholder="Admin..." id="firstname">
                            </div>
                            <div class="input-group form-group-no-border input-lg">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons text_caps-small"></i>
                                </span>
                                <input type="password" placeholder="^_^..." class="form-control" id="firstpwd">
                            </div>
                        </div>
                        <div class="footer text-center">
                            <a href="#" class="btn btn-primary btn-round btn-lg btn-block" id="aclick">点击登录</a>
                        </div>
                        <div class="pull-left">
                            <h6>
                                <a href="#pablo" class="link">创建账户</a>
                            </h6>
                        </div>
                        <div class="pull-right">
                            <h6>
                                <a href="#pablo" class="link">需要帮助?</a>
                            </h6>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container">
                <nav>
                    <ul>
                        <li>
                            <a href="#">
                                <!-- Creative Tim -->
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <!-- About Us -->
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <!-- Blog -->
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <!-- MIT License -->
                            </a>
                        </li>
                    </ul>
                </nav>
                <div class="copyright">
                    当前时间:
                    <script>
                        Date.prototype.Format = function (fmt) {
                            var o = {
                                "M+": this.getMonth() + 1, //月份 
                                "d+": this.getDate(), //日 
                                "H+": this.getHours(), //小时 
                                "m+": this.getMinutes(), //分 
                                "s+": this.getSeconds(), //秒 
                                "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
                                "S": this.getMilliseconds() //毫秒 
                            }
                                if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
                                    for (var k in o)
                                    if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
                                    return fmt;
                                }
                        var time2 = new Date().Format("yyyy-MM-dd HH:mm:ss");  
                        console.log(time2);
                        document.write(time2)
                    </script>
                </div>
            </div>
        </footer>
    </div>
</body>
<!--   Core JS Files   -->
<script src="assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="assets/js/core/bootstrap.min.js" type="text/javascript"></script>
<!--  Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
<script src="assets/js/plugins/bootstrap-switch.js"></script>
<!--  Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
<script src="assets/js/plugins/nouislider.min.js" type="text/javascript"></script>
<!--  Plugin for the DatePicker, full documentation here: https://github.com/uxsolutions/bootstrap-datepicker -->
<script src="assets/js/plugins/bootstrap-datepicker.js" type="text/javascript"></script>
<!-- Share Library etc -->
<script src="assets/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
<!-- Control Center for Now Ui Kit: parallax effects, scripts for the example pages etc -->
<script src="assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>

<script>



      function IsPC() {
        var userAgentInfo = navigator.userAgent;
        var Agents = ["Android", "iPhone",
                    "SymbianOS", "Windows Phone",
                    "iPad", "iPod"];
        var flag = true;
        for (var v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) {
                flag = false;
                break;
            }
        }
        return flag;
    }
     
    var flag = IsPC(); 
    console.log(flag)//true为PC端，false为手机端和ipad



    if (flag) {
        aclick.onclick = function(){
            var user = firstname.value
            var pwd = firstpwd.value
            console.log(user)
            console.log(pwd)
            if (user == "jiangting" && pwd == "123456") {
                aclick.href = "./doubleindex/index.html"
                // return false;
             }else{
                window.alert("亲爱的,密码错了哦");
             }
        }
    }else{
         aclick.onclick = function(){
            var user = firstname.value
            var pwd = firstpwd.value
            console.log(user)
            console.log(pwd)
            if (user == "jiangting" && pwd == "123456") {
                aclick.href = "./package/jiaoben4646/index.html"
                // return false;
             }else{
                window.alert("亲爱的,密码错了哦");
             }
    }
}

</script>

</html>